import request from '@/utils/request'

// 查询仪表-----周期收费列表
export function listMoney(query) {
  return request({
    url: '/yibiaoManagement/money/list',
    method: 'get',
    params: query
  })
}

// 查询仪表-----周期收费详细
export function getMoney(ybMoyId) {
  return request({
    url: '/yibiaoManagement/money/' + ybMoyId,
    method: 'get'
  })
}

// 新增仪表-----周期收费
export function addMoney(data) {
  return request({
    url: '/yibiaoManagement/money',
    method: 'post',
    data: data
  })
}

// 修改仪表-----周期收费
export function updateMoney(data) {
  return request({
    url: '/yibiaoManagement/money',
    method: 'put',
    data: data
  })
}

// 删除仪表-----周期收费
export function delMoney(ybMoyId) {
  return request({
    url: '/yibiaoManagement/money/' + ybMoyId,
    method: 'delete'
  })
}

//---------------------------
// 换表
export function updateMoneyBiao(data) {
  return request({
    url: '/yibiaoManagement/money/newBiao',
    method: 'put',
    data: data
  })
}
